﻿using OA.Mvc.Filters;
using System.Web;
using System.Web.Mvc;

namespace OA.Mvc
{
    public class FilterConfig
    {
        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            filters.Add(new HandleErrorAttribute());
            //filters.Add(new OAActionFilterAttribute());
            //filters.Add(new OAAuthFilterAttribute());

            filters.Add(new OAExceptionAttruibute());

            filters.Add(DependencyResolver.Current.GetService<OAAuthorizeAttribute>());
        }
    }
}
